import {Sequelize, DataTypes} from "sequelize";
module.exports = (sequelize: Sequelize, DataTypes: DataTypes) => {
    const User = sequelize.define('user', {
        id: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            allowNull: false,
            autoIncrement: true
        },
        firstName: {
            type: DataTypes.STRING,
            field: 'firstName'
        },

    }, {
        // 是否需要增加createdAt、updatedAt、deletedAt字段
        'timestamps': false,
        freezeTableName: true,
        charset: 'utf8',
        collate: 'utf8_unicode_ci'
    })
}

